package com.douwong.student.activity;

import android.content.Context;
import android.content.Intent;

import com.bumptech.glide.Glide;
import com.douwong.student.R;
import com.douwong.student.base.BaseActivity;
import com.douwong.student.view.ZoomImageView;

public class ZoomImageActivity extends BaseActivity {
    private ZoomImageView mZoomImageView;

    public static void  startActivity(Context context, String content){
        Intent intent=new Intent(context,ZoomImageActivity.class);
        intent.putExtra("iamgeUrl",content);
        context.startActivity(intent);
    }
    @Override
    protected void initView() {
        setContentView(R.layout.activity_zoom_image);
       mZoomImageView= (ZoomImageView) findViewById(R.id.zoom_image_view);
    }

    @Override
    protected void initData() {
        super.initData();
        String iamgeUrl = getIntent().getStringExtra("iamgeUrl");
        Glide.with(this).load(iamgeUrl).placeholder(R.mipmap.answerdefault).into(mZoomImageView);
    }
}
